﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
using CMP.ERP.DAL;
using CMP.ERP.Model;

namespace CMP.ERP.BLL
{
    public class FahuoBLL
    {
        FahuoDAL dal = new FahuoDAL();
        /// <summary>
        /// 根据Id获取单行数据
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public Shipments GetShipmentsById(int id)
        {
            return dal.GetShipmentsById(id) ;
        }
        /// <summary>
        /// 修改订单状态及添加发货单
        /// </summary>
        /// <param name="f"></param>
        /// <returns></returns>
        public int UpdStateAndAddFahuolist( Fahuolist f)
        {
            return dal.UpdStateAndAddFahuolist(f);
        }
        /// <summary>
        /// 发货单显示
        /// </summary>
        /// <returns></returns>
        public DataTable FahuolistShow()
        {
            return dal.FahuolistShow();
        }
        /// <summary>
        /// 确认收货
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public int shouhuo(int id)
        {
            return dal.shouhuo(id);
        }
        /// <summary>
        /// 显示已发货的订单表
        /// </summary>
        /// <returns></returns>
        public DataTable GetShipments()
        {
            return dal.GetShipments();
        }
    }
}
